org.springframework.data.document.mongodb.query
Class QueryMapper

java.lang.Object
  extended by org.springframework.data.document.mongodb.query.QueryMapper

public class QueryMapper
extends java.lang.Object

A helper class to encapsulate any modifications of a Query object before it gets submitted to the database.

Author:
Jon Brisbin , Oliver Gierke

Field Summary
private  MongoConverter converter
           
 
Constructor Summary
QueryMapper(MongoConverter converter)
          Creates a new QueryMapper with the given MongoConverter.
 
Method Summary
 DBObject getMappedObject(DBObject query, MongoPersistentEntity<?> entity)
          Replaces the property keys used in the given DBObject with the appropriate keys by using the PersistentEntity metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

converter

private final MongoConverter converter
Constructor Detail

QueryMapper

public QueryMapper(MongoConverter converter)
Creates a new QueryMapper with the given MongoConverter.

Parameters:
converter -
Method Detail

getMappedObject

public DBObject getMappedObject(DBObject query,
                                MongoPersistentEntity<?> entity)
Replaces the property keys used in the given DBObject with the appropriate keys by using the PersistentEntity metadata.

Parameters:
query -
entity -
Returns: